package com.zygh.policeasset.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zygh.policeasset.mapper.AssetsStepsMapper;
import com.zygh.policeasset.pojo.AssetsSteps;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/AssetsStepsService.class */
public class AssetsStepsService {
    @Autowired
    AssetsStepsMapper assetsStepsMapper;

    public AssetsSteps queryById(Integer id) {
        return this.assetsStepsMapper.queryById(id);
    }

    public PageInfo queryAll(int pageNum, int pageSize, Integer status) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo(this.assetsStepsMapper.queryAll(status));
    }

    public int add(AssetsSteps assetsSteps) {
        return this.assetsStepsMapper.add(assetsSteps);
    }

    public int update(AssetsSteps assetsSteps) {
        return this.assetsStepsMapper.update(assetsSteps);
    }

    public int deleteById(Integer id) {
        return this.assetsStepsMapper.deleteById(id);
    }

    public int updateByid(Integer id, Integer status) {
        return this.assetsStepsMapper.updateByid(id, status);
    }

    public int queryByType(String stepsType) {
        return this.assetsStepsMapper.queryByType(stepsType);
    }

    public int queryByStepsType(String stepsType) {
        return this.assetsStepsMapper.queryByType(stepsType);
    }
}